package net.hn.hnms.biz.safety.robot.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Author: PanSX
 * Date: 2023/3/8 15:01
 */
@Data
@ApiModel
public class HisData {
    @Id
    private String id;

    @ApiModelProperty("计划名称")
    @Column
    private String hisplanname;
    @Column
    @ApiModelProperty("识别类型")
    private String mtype;
    @Column
    @ApiModelProperty("识别小类型")
    private String submtype;

    @ApiModelProperty("点位名称")
    @Column
    private String meteragepointname;

    @ApiModelProperty("识别结果")
    @Column
    private String val;
    @Column
    @ApiModelProperty("告警等级")
    private String alartlevel;
    @Column
    @ApiModelProperty("审核状态")
    private String checkstate;
    @Column
    @ApiModelProperty("识别时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "Asia/Shanghai"
    )
    private Date dtime;
}
